//
//  ClientApi.h
//  FinancialStore
//
//  Created by zhenqiu on 16/7/22.
//  Copyright © 2016年 zhenqiu. All rights reserved.
//

#import "NetWorkManager.h"
#import "CommonApi.h"
#import "FeedBackModel.h"

@interface ClientApi : NetWorkManager{
    
}

-(void)registerImei:(nullable id)parameter withCallBack:(nullable CompletionBlock) callBack;
-(void)registerPushCode:(nonnull NSString*)pushCode withCallBack:(nullable CompletionBlock) callBack;
-(void)getXindaiZone:(NSInteger)letter withHot:(NSInteger)hot withCallBack:(nullable CompletionBlock) callBack;
-(void)getVerifyCode:(nonnull NSString*)mobile withTelid:(NSInteger)telid withUid:(NSInteger)uid withIsVerify:(NSInteger)isVerify withCallBack:(nullable CompletionBlock) callBack;
-(void)login:(nonnull NSString*)mobile withVerify:(NSInteger)is_login withChecksms:(nullable NSString*)checksms withPasswd:(nullable NSString*)passwd withCallBack:(nullable CompletionBlock) callBack;
//注册接口
- (void)loginWithRegister:(nullable NSString *)phoneNumber withChecksms:(nullable NSString *)checksms withPasswd:(nullable NSString *)passwd withConfirmPasswd:(nullable NSString *)confirmPasswd withCallBack:(nullable CompletionBlock) callBack;
-(void)exit:(nullable CompletionBlock) callBack;

//home-credit card
- (void)getCreditCardLineBanks:(NSInteger)show_nums withCallBack:(nullable CompletionBlock)callBack;
- (void)getCreditCardBanksWithCallBack:(nullable CompletionBlock)callBack;
- (void)getCredtiCardListWithPage:(NSInteger)page andPageSize:(NSInteger)page_size andCallBack:(nullable CompletionBlock)callBack;
- (void)getCreditCardTagsWithCallBack:(nullable CompletionBlock)callBack;
- (void)getCreditCardWithPage:(NSInteger)page andPageSize:(NSInteger)page_size andBankId:(NSInteger)bank_id
                   andTagsIds:(nullable NSString *)tag_ids andKeyWord:(nullable NSString *)keyword andIsHot:(NSInteger)isHotCard
                  andCallBack:(nullable CompletionBlock)callBack;


- (void)getCreditCardDetail:(NSInteger)card_id withCallBack:(nullable CompletionBlock)callBack;
- (void)addCreditCardApplyRecordWithCard_id:(NSInteger)card_id withBank_id:(NSInteger)bank_id withCallBack:(nullable CompletionBlock)callBack;
- (void)getCreditCardApplyRecordWithCallBack:(nullable CompletionBlock)callBack;

// bill

- (void)addBillCreditCardWith:(NSInteger)ID WithCallBack:(nullable CompletionBlock)callBack;
- (void)getCreditCardDetailNew:(NSInteger)card_id withCallBack:(nullable CompletionBlock)callBack;
- (void)getBillCreditCardMyListWithlist:(NSInteger)has_list WithCallBack:(nullable CompletionBlock)callBack;
//- (void)getBillCreditCardMyListWithCallBack:(nullable CompletionBlock)callBack;
- (void)getBillDetailHandWithCardID:(NSInteger)card_id withCallBack:(nullable CompletionBlock)callBack;
- (void)deleteBillHandWithID:(NSInteger)ID andIsSpider:(NSInteger)is_Spider withCallBack:(nullable CompletionBlock)callBack;
//bill-email
- (void)getBillEmailList:(nullable CompletionBlock)callBack;
- (void)addEmailBillWithType:(nonnull NSString *)bindType andCard_id:(NSInteger)card_id andCallBack:(nullable CompletionBlock)callBack;
- (void)getBillDetailSpiderWithCardID:(NSInteger)ID withCallBack:(nullable CompletionBlock)callBack;

- (void)getBillListSpiderPastWithCardID:(NSInteger)ID withCallBack:(nullable CompletionBlock)callBack;
- (void)getBillMonthDetailWithCardID:(NSInteger)ID andNum:(nonnull NSString *)bank_num withCallBack:(nullable CompletionBlock)callBack;



- (void)getDiscoverBannerWithType:(NSUInteger)bannerType cityName:(nullable NSString *)cityName withCallBack:(nullable CompletionBlock)callBack;
- (void)getDiscoverHotNewsInfoWithCateID:(nullable NSString *)cate_id  cityName:(nullable NSString *)cityName page:(NSInteger)loadPage withCallBack:(nullable CompletionBlock)callBack;

-(void)reuqestLoanWithDic:(nonnull id)dic withCallBack:(nullable CompletionBlock)callBack;

//me - credit card inquire
- (void)getMeInquireCardWithCallBack:(nullable CompletionBlock)callBack;
//me - myloan
- (void)getMyloanWithCallBack:(nullable CompletionBlock)callBack;
//me - feedback
- (void)addFeedbackMsgWithModel:(FeedBackModel *)model andCallBack:(nullable CompletionBlock)callBack;

//短信发送
- (void)getMeVerifyPhoneNumber:(nullable NSString *)phoneNumber withTeild:(NSInteger)telid withCallBack:(nullable CompletionBlock)callBack;
//修改密码
- (void)getMeVerifyPhoneNumber:(nullable NSString *)phoneNumber withChecksms:(nullable NSString *)checksms withPassWord:(nullable NSString *)passWord withConfirmPassWord:(nullable NSString *)confirmPassWord withCallBack:(nullable CompletionBlock)callBack;
//修改手机号
- (void)getMeModificationWithNewPhoneNumber:(nullable NSString *)phoneNumber withChecksms:(nullable NSString *)checksms withCallBack:(nullable CompletionBlock)callBack;
//忘记密码
- (void)forGotToLoginWithPhoneNumber:(nullable NSString *)phoneNumber withChecksms:(nullable NSString *)checksms withPasswd:(nullable NSString *)passwd withConfirmPasswd:(nullable NSString *)confirmPasswd withCallBack:(nullable CompletionBlock)callBack;
//贷款界面
- (void)CreditWithCommunication:(NSUInteger)communication withCallBack:(nullable CompletionBlock)callBack;
//上传认证信息
- (void)creditWithUpLoadWithSid:(NSInteger)sid WithAccount:(nullable NSString *)account WithData:(nullable NSString *)Datadic withCallBack:(nullable CompletionBlock)callBack;

-(void)upLoadUserAvatar:(nonnull UIImage*)image withCallBack:(nullable CompletionBlock)callBack;
-(void)uploadUserImageInfo:(nonnull NSString*)sid withImage:(nonnull UIImage*)image withCallBack:(nullable CompletionBlock)callBack;
//请求信用首页的全部数据
- (void)creditWithCreditHome:(nullable CompletionBlock)callBack;
//上传邮箱信息
- (void)creditWithUpLoadEmailWithEmailUserName:(nullable NSString *)userName withPassWord:(nullable NSString *)passWord withSuffix:(nullable NSString *)suffix withCallBack:(nullable CompletionBlock)callBack;
//验证短信验证码
- (void)verifyPhoneNumber:(nullable NSString *)phoneNumber withVerify:(nullable NSString *)verify withCallBlock:(nullable CompletionBlock)callBack;
//上传考拉分数据
- (void)upLoadWithPhone:(nullable NSString *)phoneNumber withUserName:(nullable NSString *)userName withIdentityNumber:(nullable NSString *)identity withCallBack:(nullable CompletionBlock)callBack;

//首页申请贷款、信用卡成功人数数量接口
- (void)getHomeApplyCardSuccessWithUnite:(nullable NSString *)unit size:(nullable NSString *)size withCallBack:(nullable CompletionBlock)callBack;

- (void)checkAppCheckStatus:(nullable CompletionBlock) callBack;
- (void)getLoanListH5Address:(nullable CompletionBlock)callBack;
- (void)getTest:(nullable CompletionBlock)callBack;
- (void)checkAppVersionStatus:(NSDictionary *)params callback:(nullable CompletionBlock)callBack;

-(void)login:(nonnull NSString*)mobile withVerify:(NSInteger)is_login withChecksms:(nullable NSString*)checksms withPasswd:(nullable NSString*)passwd andIsJump:(NSInteger)is_jump withCallBack:(nullable CompletionBlock) callBack;


- (void)getArticleWithCate:(NSInteger)cate_id page:(NSInteger)page pageSize:(NSInteger)page_size withCallBack:(nullable CompletionBlock)callBack;

- (void)getLoanBaoXianStatusWithCallBack:(nullable CompletionBlock)callBack;

//zq tips status 
- (void)getZQLoanListStatuWithCallBack:(nullable CompletionBlock)callBack;

@end
